package jsyf.oa.entity.apply;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

/**
 * Created by Lenovo on 2017/12/26.
 */
public class MoneyPayerEntity extends BaseEntity {
    private String fkMoneyId;
    private String payerId;
    private String payerName;

    public String getFkMoneyId() {
        return fkMoneyId;
    }

    public void setFkMoneyId(String fkMoneyId) {
        this.fkMoneyId = fkMoneyId;
    }

    public String getPayerId() {
        return payerId;
    }

    public void setPayerId(String payerId) {
        this.payerId = payerId;
    }

    public String getPayerName() {
        return payerName;
    }

    public void setPayerName(String payerName) {
        this.payerName = payerName;
    }

    @Override
    public JSONObject getJSONObject() {
       JSONObject obj = new JSONObject();
       obj.put("ID",this.getId());
       obj.put("FK_MONEY_ID",this.getFkMoneyId());
       obj.put("PAYER_ID",this.getPayerId());
       obj.put("PAYER_NAME",this.getPayerName());
       return obj;

    }

    @Override
    public String getTableName() {
        return "T_APL_MONEY_PAYER";
    }

    @Override
    public String getViewName() {
        return "V_APL_MONEY_PAYER";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID","id");
        obj.put("FK_MONEY_ID","fkMoneyId");
        obj.put("PAYER_ID","payerId");
        obj.put("PAYER_NAME","payerName");
        return obj;
    }
}
